set(CORTEX_M0   0)
set(CORTEX_M1   1)
set(CORTEX_M3   2)
set(CORTEX_M7   3)
set(CORTEX_M33  4)
set(X86         5)

if (DEFINED CONFIG_PLUM_CPU_Cortex_M0)
message(WARNING "CPU Platform is Cortex M0")
set(PLUM_CPU_PLATFORM ${CORTEX_M0})

elseif (DEFINED CONFIG_PLUM_CPU_Cortex_M1)
message(WARNING "CPU Platform is Cortex M1")
set(PLUM_CPU_PLATFORM ${CORTEX_M1})

elseif (${CONFIG_PLUM_CPU_Cortex_M3})
message(WARNING "CPU Platform is Cortex M3")
set(PLUM_CPU_PLATFORM ${CORTEX_M3})

elseif (${CONFIG_PLUM_CPU_Cortex_M33})
message(WARNING "CPU Platform is Cortex M33")
set(PLUM_CPU_PLATFORM ${CORTEX_M33})

elseif (${CONFIG_PLUM_CPU_Cortex_M7})
message(WARNING "CPU Platform is Cortex M7")
set(PLUM_CPU_PLATFORM ${CORTEX_M7})

elseif (${CONFIG_PLUM_CPU_X86})
message(WARNING "CPU Platform is X86")
set(PLUM_CPU_PLATFORM ${X86})

else()
message (FATAL_ERROR "Not Support The CPU Platform")
endif()

message(WARNING "PLUM_CPU_PLATFORM is : ${PLUM_CPU_PLATFORM}")

aux_source_directory(source KERNEL)

add_library(kernel
          STATIC
          ${KERNEL})
